Optimal. Leaf size=4 \[ x+\cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0601193, antiderivative size = 4, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4391, 2682, 8} \[ x+\cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4391
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\cos (x)}{\sec (x)+\tan (x)} \, dx &=\int \frac{\cos ^2(x)}{1+\sin (x)} \, dx\\ &=\cos (x)+\int 1 \, dx\\ &=x+\cos (x)\\ \end{align*}
Mathematica [A] time = 0.0184668, size = 4, normalized size = 1. \[ x+\cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.091, size = 15, normalized size = 3.8 \begin{align*} 2\, \left ( \left ( \tan \left ( x/2 \right ) \right ) ^{2}+1 \right ) ^{-1}+x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.64385, size = 41, normalized size = 10.25 \begin{align*} \frac{2}{\frac{\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1} + 2 \, \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.467904, size = 16, normalized size = 4. \begin{align*} x + \cos \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (x \right )}}{\tan{\left (x \right )} + \sec{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.12482, size = 19, normalized size = 4.75 \begin{align*} x + \frac{2}{\tan \left (\frac{1}{2} \, x\right )^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]